package com.fbee.smartcommunities.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fbee.smartcommunities.core.Base;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author 汪佳泉
 * @since 2024-08-21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Repair extends Base {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 报修类型
     */
    private String type;

    /**
     * 报修时间
     */
    private LocalDateTime repairTime;

    /**
     * 报修内容
     */
    private String content;

    /**
     * 联系方式
     */
    private String phone;

    /**
     * 联系地址
     */
    private String address;

    /**
     * 处理状态
     */
    private Integer state;

    /**
     * 报修图片地址
     */
    private String img;

    /**
     * 处理状态
     */
    private Integer deleted;

    /**
     * 报修图片地址数组
     */
    @TableField(exist = false)
    private List<String> imgs;

    public Repair(Integer state,Long userId,String type, LocalDateTime repairTime, String content, String phone, String address, String img) {
        this.state = state;
        this.userId = userId;
        this.type = type;
        this.repairTime = repairTime;
        this.content = content;
        this.phone = phone;
        this.address = address;
        this.img = img;
    }
}
